package com.wind.sample.springbootone.controller;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api")
public class EchoController {
    @PostMapping("/echo")
    public Object echo(@RequestBody Object data) {
        return data;
    }
}